﻿using System;
using System.Windows.Forms;

namespace TextEditor
{
    

    public class A_InsertTemplate : A_Action
    {
        public A_InsertTemplate()
        {
            base.HotKey = Keys.Control | Keys.T;
        }

        public override string ActionName()
        {
            return "inserttemplate";
        }

        public override bool Execute()
        {
            base.myOwnerDocument._InsertKB(true);
            return true;
        }

        public override bool isEnable()
        {
            return base.myOwnerDocument.CanModify();
        }
    }
}

